package org.gruposp2p.dnie.service;

import java.util.List;
import org.gruposp2p.dnie.model.DNIeDocumentToSign;
import org.gruposp2p.dnie.model.DNIeUser;

/**
 *
 * @author jj
 */
public interface DNIeDocumentToSignDAO {

    public DNIeDocumentToSign findById(Integer id);

    public List<DNIeDocumentToSign> findList(int firstResult, int maxResults);

    public List<DNIeDocumentToSign> findUserList(int firstResult,
            int maxResults, DNIeUser dnieUserId);
    
    public List<DNIeDocumentToSign> findOrderedByNumberSignaturesList(
    		int firstResult, int maxResults);

    public DNIeDocumentToSign save(DNIeDocumentToSign document) ;

    public DNIeDocumentToSign update(DNIeDocumentToSign document);

    public boolean delete(Integer documentId) ;
    
}